package ro.imc.andrei.beans;

public class Student extends Person{

	private int studentNo;
	private String status;
	private Integer faculty;
	
	public Integer getFaculty() {
		return faculty;
	}
	public void setFaculty(Integer faculty) {
		this.faculty = faculty;
	}
	public Integer getStudentNo() {
		return studentNo;
	}
	public void setStudentNo(Integer studentNo) {
		this.studentNo = studentNo;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	
	public String[] getFields(){
		String[] fields = new String[6];
		int i=0;
		
		fields[i++] = "firstName";
		fields[i++] = "lastName";
		fields[i++] = "cnp";
		fields[i++] = "studentNo";
		fields[i++] = "status";
		fields[i++] = "facultyId";
		
		return fields;
	}
	
	public String[] getValues(){
		String[] values = new String[6];
		int i = 0;
		
		values[i++] = this.getFirstName();
		values[i++] = this.getLastName();
		values[i++] = this.getCNP();
		values[i++] = this.getStudentNo().toString();
		values[i++] = this.getStatus();
		values[i++] = this.getFaculty().toString();
		
		return values;
	}
}
